/**
 * 
 */
package hu.gbalage.owl.cms.disec.flickr;

import javax.xml.parsers.ParserConfigurationException;

import com.aetrion.flickr.Flickr;
import com.aetrion.flickr.REST;

/**
 * @author balage
 *
 */
public class FlickrService {

	public static final String key_property = "com.aetrion.flickr.key";
	public static final String secret_property = "com.aetrion.flickr.secret";
	
	public static String getApiKey(){
		return System.getProperty(key_property);
	}
	
	public static String getApiSecret(){
		return System.getProperty(secret_property);
	}
	
	public static Flickr createFlickr() throws ParserConfigurationException{
		return new Flickr(getApiKey(),getApiSecret(),new REST());
	}
	
}
